/**
 * 登录服务
 * 
 * @author lianchao
 */
// 创建登录模块
var jobGroupServiceApp = angular.module("jobGroupServiceApp", [ "commonApp" ]);

// 创建登录服务
jobGroupServiceApp.service("jobGroupService", [
		"commonService",
		function(commonService) {
			/**
			 * 新增任务组
			 */
			this.add = function(params, sback, eback) {
				commonService.call("tsp/jobGroup/add", params, sback, eback);
			}
			
			/**
			 * 查询任务组
			 */
			this.removeList = function(params, sback, eback) {
				commonService.call("tsp/jobGroup/deleteList", params, sback, eback);
			}
			
			/**
			 * 查询任务组
			 */
			this.update = function(params, sback, eback) {
				commonService.call("tsp/jobGroup/update", params, sback, eback);
			}
			
			/**
			 * 删除任务组
			 */
			this.resume = function(params, sback, eback) {
				commonService.call("tsp/jobGroup/resume", params, sback, eback);
			}
			
			/**
			 * 更新任务组
			 */
			this.pause = function(params, sback, eback) {
				commonService.call("tsp/jobGroup/pause", params, sback, eback);
			}
			
			/**
			 * 暂停任务
			 */
			this.queryPage = function(params, sback, eback) {
				commonService.call("tsp/jobGroup/queryPage", params, sback, eback);
			}
			
			/**
			 * 唤醒任务
			 */
			this.query = function(params, sback, eback) {
				commonService.call("tsp/jobGroup/query", params, sback, eback);
			}
			
		}
]);